package com.fisher.jaxwswebapidemo.ws;

import com.fisher.jaxwswebapidemo.Service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.jws.WebService;

@WebService(name="SayHelloWS",
targetNamespace = "com.fisher.jaxwswebapidemo.ws",
endpointInterface = "com.fisher.jaxwswebapidemo.ws.SayHelloWS")
public class SayHelloWSImpl implements SayHelloWS {

    @Autowired
    private HelloService sayHelloService;

    @Override
    public String sayHello(String yourName) {
        return sayHelloService.sayHello(yourName);
    }
}
